/**
  ******************************************************************************
  * @file    CFG_SetBaudRate.c
  * @author  exatron
  * @version V1.0.0
  * @date    segunda, 22 de dezembro de 2014
  * @brief   Seta baudrate serial.
  ******************************************************************************
  * @attention
  *
  *
  ******************************************************************************
  */

/**
  * @addtogroup CFG
  * @{
  */

/* Includes ------------------------------------------------------------------*/
#include <common.h>

/* External functions --------------------------------------------------------*/

/**
  * @defgroup CFG_Functions
  * @{
  */

/**
  * @brief  Seta baudrate serial.
  * @param  int baudrate
  * @retval Devolve pela serial Result_t
  */
void CFG_SetBaudRate(SerialType_t serial,int baudrate)
{
	if(aux_CFG_SetBaudRate(serial, baudrate) == Result_Ok)
		aux_USART0_puts("%s=%d\r\n", "CFG_SBR", Result_Ok);
	else
		aux_USART0_puts("%s=%d\r\n", "CFG_SBR", Result_BadArgument);

	aux_SetBusy(FALSE);
}

/**
  * @}
  */

/**
  * @}
  */


